import {Page} from "./common"
export interface roleParams{
    roleName:string;
}

export interface RoleDeleteParams{
    id:number;
}

// permissionList权限列表包含的数据
export interface PermissionList{
    id?:number;
    checkedKeys:string[];
    halfCheckedKeys:string[];
}
// 表单行数据
export interface RoleRow{
    id?:number;
    permissionList?:PermissionList;
    remark:string;
    roleName:string;
}

// 权限参数
export interface PermissionPrams{
    id:number;
    permissionList:PermissionList
}

// 分页得到列表参数
export interface PaginationParams{
    roleName:string;
    page:Page;
}

// 角色创建参数
export interface RoleCreateParams{
    roleName:string;
    remark:string;
}
// 角色编辑
export interface RoleEditParams extends RoleCreateParams{
    id:number;
}